 

<div class="content-inner">
    <div class="marg20-btm">
        <a href=<?php echo site_url('backend_pages/addmember'); ?> class="btn btn-primary">&#43; Add Members </a>
    </div>
    <div class="marg20-btm">
        All Members In Group Developer In Cambodia &nbsp; <span class="badge badge-info"> <?php echo $this->session->userdata('count_member'); ?> </span>

    </div>

    <table class="table table-bordered table-striped">
        <thead>
            <tr>
                <th><input type="checkbox" class="check-all" value="" /></th>
                <th>ID</th>
                <th>Username </th>
                <th>Gender </th>
                <th>Email Active </th>
                <th>Phone Number</th>
                <th>Address </th>
                <th>Position </th>
                <th>Status </th>
                <th>Action </th>

            </tr>
        </thead>
        <tbody>
            <?php
            if ($member->num_rows() > 0) {
                foreach ($member->result() as $row) {
                   // if($row->role_ID == 2){
                    echo '
                               <tr>
                                 <td><input type="checkbox" /></td>
                                 <td>' . $row->user_id . '</td>
                                 <td>' . $row->user_fullName . '</a></td>
                                 <td>' . $row->user_gender . '</td>
								 <td>' . $row->user_email . '</td>
                                 <td>' . $row->user_phone . '</a></td>
                                 <td>' . $row->user_address . '</td>
								 <td><span class="label label-success">' . $row->role_name . '</span></td>
								 <td>';
								 if($row->user_statu_id == 1){
									 echo '<a href="'.site_url("backend_pages/mem_statu").'/'.$row->user_statu_id.'/'.$row->user_id.'"><img src="'.site_url().'backend/img/statu.gif" title="Click to Unpublish !" />';
								 }else{
									 echo '<a href="'.site_url("backend_pages/mem_statu").'/'.$row->user_statu_id.'/'.$row->user_id.'"><img src="'.site_url().'backend/img/statu_1.gif" title="Click to Publish !" />';
									}
									
								echo '</td>
								 <td>
								 
                                     <a onClick="return confirm(\'Are you sure to update ?\')" href=' . site_url('backend_pages/admin_update_account') . '/' . $row->user_id . '  rel="tooltip" title="Edit" class="btn btn-primary"><i class="icon-edit"></i></a>
                                     <a href=' . site_url('backend_pages/admin_delete_member') . '/' . $row->user_id . ' rel="tooltip" title="Delete" class="btn btn-danger" onClick="return confirm(\'Are you sure to delete ?\')"><i class="icon-trash"></i></a>
                                 </td>
                               </tr>';
                   // }
                }
            }
            ?>

        </tbody>
    </table>
    <div class="form-inline">
        <select>
            <option />Bulk Actions 
            <option />Delete 
        </select>
        <input type="submit" value="Submit" class="btn btn-primary" onClick="return confirm('Are you sure ?');" />
    </div>
    <div class="pagination">
        <ul>
            <ul>
                <li><?php echo $pages; ?></li>
            </ul>
        </ul>
    </div>
